c# convert enumb to int array

41

c# enum to int array -

int[] b = Array.ConvertAll((int[])Enum.GetValues(typeof(TestEnum)), Convert.ToInt32);

c# convert enumb to int array -

int[] result = enumArray.Cast<int>().ToArray();

Comments

Submit
0 Comments